//组件复用
const Input = ({onChangeHandler} ) => {
    return (
        <input type="search" onChange={ onChangeHandler }/>
    )
}
/*
class Input extends React.Component{
    render(){
        const { onChangeHandler } = this.props;
        return (
            <input type="search" onChange={ onChangeHandler }/>
        )
    }
}
*/